<template>
  <el-container class="layout-container">
    <el-header height="70">
      <Header/>
    </el-header>
    <el-container>
      <el-aside :width="collapse() ? '64px' : '200px'">
        <Aside/>
      </el-aside>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Header from '@/components/Header'
import Aside from '@/components/Aside'
export default {
  name: 'admin',
  components:{
    Header,
    Aside
  },
  data() {
    return{

    }
  },
  methods:{
    collapse(){
      return this.$store.state.collapse;
    }
  }
};
</script>

<style lang="less" scoped>
.layout-container{
  height: 100%;
}
.el-header, .el-footer {
  background-color: #373d41;
  color: #333;
  line-height: 60px;
}

.el-aside {
  background-color: #333741;
  color: #333;
  line-height: 200px;
}

.el-main {
  background-color: #eaedf1;
  color: #333;
}
</style>
